import { uniFetch } from './uni-fetch.js'

/**
 * 获取列表
 * @param data > { contentType, page, pageSize }
 */
export const getList = (data) => {
  return uniFetch({
    method: 'GET',
    url: '/driver/messages/page',
    data,
  })
}

/**
 * 标记为已读
 */
export const markReaded = (id) => {
  return uniFetch({
    method: 'PUT',
    url: '/driver/messages/' + id,
  })
}
